OOP  - Assignment 3

Topic:              A Date Data-type

Points:             25

Due:                2-5-2001

Instructor:      Dana Steil

Files:

            Assignment3.cpp

            Date.cpp

            Date.h

Create a class to represent a date with the following functionality:

Test Program

Write a test program that verifies that each of the requirements above is complete.  Your test program must be thorough.  Your test program does not have to interact with the user. 

Leap Years

             if (year mod 4 != 0)
                 {use 28 for days in February}
 
             else if  (year mod 400 == 0)
                 {use 29 for days in February}
 
             else if (year mod 100 == 0)
                 {use 28 for days in February}
 
             else
                 {use 29 for days in February}